package cn.gan.loveofsoul.entity.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Description:
 * @Author: ganwh
 * @Since: 2023/10/18 16:13
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    private String wxOpenId;

    @NotNull(message = "用户昵称不能为空")
    @Length(message = "用户昵称不能超过10个字")
    private String userName;

    private String avatarUrl;

    private Integer sex;

    private Integer flag;
}
